import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/index',
  name: 'index',
  component: DEFAULT_LAYOUT,
  // redirect: 'dashboard', // 跳转子集
  meta: {
    locale: 'menu.dashboard',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
    hideChildrenInMenu: true // 隐藏子集
  },
  children: [
    {
      path: '/dashboard',
      name: 'Dashboard',
      component: () => import('@/views/dashboard/index.vue'),
      meta: {
        locale: 'menu.dashboard',
        requiresAuth: true,
        // activeMenu: 'index', // 父级高亮
      },
    },
  ]
};

export default DASHBOARD;
